import request from '@/utils/request'
export const getEmployee = (params) => request('/sys/user', { params })
export const addEmployee = (data) => request.post('/sys/user', data)
export const delEmployee = id => request.delete(`/sys/user/${id}`)
export const exportEmployee = () => request({ url: `/sys/user/export`, responseType: 'blob' })
export const download = () => request({ url: `/sys/user/import/template`, responseType: 'blob' })
export const updateExcel = data => request({ url: `/sys/user/import`, method: 'post', data })
export const getEmployeeDefailt = id => request(`/sys/user/${id}`)
export const editEmployeeDefailt = data => request.put(`/sys/user/${data.id}`, data)
export const updateAssignRoles = data => request.put(`/sys/user/assignRoles`, data)
